<?
    $accounts = [];

    foreach ($this->collection_account as $model_account)
    {
        $accounts[] = [
            'id' => $model_account->getID(),
            'login' => $model_account->getLogin(),
            'display_name' => $model_account->getDisplayName(),
            'short_name' => $model_account->getShortName()
        ];
    };

    echo json_encode($accounts);
?>